package com.eagle.coders.core.exceptions.handler;

/**
 * 
 * @author Anees
 *
 */
public class ExceptionHandlerFactory {
	
    private static ExceptionHandlerFactory Instance;

    static {
        Instance = new ExceptionHandlerFactory();
    }

    private ExceptionHandlerFactory() {
    }

    public static ExceptionHandlerFactory getInstance() {
        return Instance;
    }
    
    public ExceptionHandler getEjbExceptionHandler(){
        ExceptionHandler handler = new EjbExceptionHandler();
    	return handler;
    }
    
    public ExceptionHandler getWebExceptionHandler(){
        ExceptionHandler handler = new WebExceptionHandler();
        return handler;
    }
    
}
